package com.li.shop.service;

import com.li.shop.domain.Coupon;
import com.li.shop.utils.SearchCouponRequest;
import com.li.shop.utils.SearchCouponResponse;

import java.util.List;

public interface CouponService {
    SearchCouponResponse listCoupon(Integer pageSize, Integer pageNum, String keyword);
    int deleteCouponByPrimaryKey(String id);
    Coupon findCouponByPrimaryKey(String id);
    List<Coupon> searchCoupons(SearchCouponRequest request);
    int saveCoupon(Coupon coupon);

    //根据U_id拿到所有的优惠券
    List<Coupon> find(String cid);
}
